@(contactForm: Form[Contact], request: play.api.mvc.Request[play.api.mvc.AnyContent])
@import controllers.Ext 
@import play.api.i18n._
@import helper._
@import play.api.mvc

@scripts = {
	<script src="@routes.Assets.at("javascripts/slicebox/modernizr.custom.46884.js")" type="text/javascript"></script>
	<script src="@routes.Assets.at("javascripts/slicebox/jquery.slicebox.js")@controllers.Ext.vi()" type="text/javascript"></script>
} 
@stylesheets = {
	<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/contact.css")@Ext.vi()"/>
} 

@title = { @Messages("contact_title") }

@main(title, scripts, stylesheets) {

<div class="contact">
	<div class="grid_16">
	<div class="inner_contact ova">
		<div class="grid_16">
			<div class="grid_1">&nbsp;</div>
				<div class="grid_14 m30 contact-form p10">
					<h2>@Messages("contact_title")</h2>
					<br />
					@helper.form(action = routes.Application.p_contact, 'id -> "form", 'class -> "clss") {
						<dl>
						Serdecznie zachęcamy do kontaktu z naszą firmą aby
									szczegółowo poznać nasze usługi i produkty. 
						</dl>
						@helper.inputText(contactForm("name"), '_label -> Messages("contact_name"))
						@helper.inputText(contactForm("email"), '_label -> Messages("contact_email"))
						@helper.inputText(contactForm("subject"), '_label -> Messages("contact_subject"))
						@helper.inputText(contactForm("phone"), '_label -> Messages("contact_phone"))
						@helper.textarea(contactForm("subject"), '_label -> Messages("contact_subject"))
						<dl>
						<input type="submit" value="@Messages("contact_submit")" id="submit" />
						</dl>
					}
					<div class="clearfix"></div>
					<h2>@Messages("contact_map")</h2>
					<br />
					<div class="contact-map ova">
						<img src="@routes.Assets.at("images/wingedbitsmap.png")" alt="Mapa" class="m0a" />
					</div>

				</div>
				<div class="grid_1">&nbsp;</div>
		</div>
	</div>
	</div>

</div>

} 
<script type="text/javascript">
$(document).ready(function(){
	$('#form').submit(function(e){
		$(e).preventDefault();
		$.post(
		{
			url: @routes.Application.p_contact(),
			data: $('#form').serialize(),
			success: function(data, textStatus, jqXHR){
				alert(data);
			}
		});
	});
});
</script>
@*header["Accept-Language"] : @request.headers("Accept-Language")*@
